home *** CD-ROM | disk | FTP | other *** search
- #
- # Makefile for a small porting library, (w) 1994, Kay Roemer.
- #
-
- CC = gcc
- AR = ar
-
- CPPFLAGS = -I. -DMINT -DLOGIN
- CFLAGS = -O2 -fomit-frame-pointer
-
- ifdef BASEREL
- all: bportlib.olb
- CFLAGS := $(CFLAGS) -mbaserel -mpcrel
- else
- all: portlib.olb
- endif
-
- SRCS = mint.c sigvec.c daemon.c pty.c login_tty.c setenv.c syslog.c \
- initgrp.c chroot.c readv.c writev.c getusershell.c strncasecmp.c itimer.c \
- cfsetspeed.c logout.c logwtmp.c strsep.c strcasecmp.c fcrypt.c ident.c \
- timeofday.c sprintf.c gethostid.c rtent.c iflink.c \
- ioctl.c tcattr.c
-
- OBJS = $(patsubst %.c, %.o, $(SRCS))
-
- portlib.olb: clean $(patsubst %.o, portlib.olb(%.o), $(OBJS))
- $(AR) s $@
-
- bportlib.olb: clean $(patsubst %.o, bportlib.olb(%.o), $(OBJS))
- $(AR) s $@
-
- (%): %
- $(AR) r $@ $%
- rm $%
-
- clean:
- rm -f $(OBJS)
-